<template>
	<!--components/upImg/upImg.wxml-->
	<view class="up_img">
	 
	  <icon class="img_icon" type="clear" size="23" color="red"></icon>
	  <image class="img" :src="src" mode="widthFit"></image>
	</view>

</template>

<script>
	export default {
		name:"upImg",
		data() {
			return {
				 src:{
				      type:String,
				      value:""
				    }
			};
		}
	}
</script>

<style>
.up_img{
  width: 100rpx;
  height: 100rpx;
  position: relative;
}
.img{
  width: 100%;
  height: 100%;
  border-radius: 15rpx;

}
.img_icon{
  position: absolute;
  top: -22rpx;
  right: -22rpx;
}
</style>